package com.lxw.nonghe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lxw.nonghe.entity.ChronicDiseaseReimbursement;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
 * <p>
 * 慢病报销表 服务类
 * </p>
 *
 * @author lxw
 * @since 2025-04-17
 */
public interface ChronicDiseaseReimbursementService extends IService<ChronicDiseaseReimbursement> {
    Page<ChronicDiseaseReimbursement> getReimbursementPage(
            int current, int size,
            String farmerName, String diseaseName, String auditStatus);

    Page<ChronicDiseaseReimbursement> queryReimbursements(
            ChronicDiseaseReimbursement queryReimbursement,
            int current, int size);

    //获取报销金额合计
    BigDecimal getTotalReimbursementAmount();

    int[] getReimbursementCountByMonth();

    BigDecimal calculateAnnualReimbursement(Integer farmerId, Integer year);
}
